#pragma once

#include <HpsFramework/Server.hpp>
#include "Client.hpp"

class ServerContext
{
public:

	ServerContext(void)
	{
	}

	~ServerContext(void)
	{
	}

	virtual void onServerStart()
	{
		std::cout << "SERVER STARTED!" << std::endl;
	}

	virtual void onServerStarting()
	{
		std::cout << "SERVER IS STARTING..." << std::endl;
	}

	virtual void onServerClose()
	{
		std::cout << "SERVER CLOSED!" << std::endl;
	}

	virtual void onServerClosing()
	{
		std::cout << "SERVER IS CLOSING..." << std::endl;
	}

	virtual bool onServerConnection( HpsFramework::Network::Client* client, HpsFramework::Network::Address& addr )
	{
		std::cout << "New connection from ..." << std::endl;
	}

	virtual void onServerUpdate()
	{
	}

	virtual bool onServerError( std::string errs, int errn )
	{
	}

};

